home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / PrPrivate.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  10.2 KB  |  241 lines  |  [TEXT/MPS ]

  1. ; Version: 3.13
  2. ; Created: Friday, October 20, 1989 at 9:41:45 PM
  3. ;
  4. ;File: PrPrivate (Owned and maintained soley by the Print Shop)
  5. ; Copyright © 1984, 1985, 1986, 1991 Apple Computer, Inc.
  6. ;
  7. ;_______________________________________________________________________
  8. ;
  9. ; Printing Equates -- This file supplements the high-level equates for the
  10. ; Macintosh printing software in PrEqu. These equates are private
  11. ; to Apple Computer, Inc. and should be used solely for building system
  12. ; software such as Apple printer drivers. The lines commented out
  13. ; reflect equates which appear in PrEqu and are included here just for
  14. ; convenience.
  15. ;
  16. ;_______________________________________________________________________
  17.  
  18.     IF &TYPE('__IncludingPrPrivate__') = 'UNDEFINED' THEN
  19. __IncludingPrPrivate__    SET    1
  20.  
  21. ; Printing Code Constants
  22.  
  23. ; These are the PrDrvr constants.
  24.  
  25. lPrLFSixth        EQU         -1                        ; The PrDevCtl Proc's CParam for 1/6 th inch paper advance
  26. lPrLFEighth       EQU         -2                        ; The PrDevCtl Proc's CParam for 1/8 th inch paper advance
  27. iPrDocOpen        EQU         1                         ; The PrDevCtl Proc's CParam for doc begin
  28. iPrPageClose      EQU         2                         ; The PrDevCtl Proc's CParam for page end
  29. ;iPrLineFeed equ 3 ; The PrDevCtl Proc's CParam for paper advance
  30. iPrPageOpen       EQU         4                         ; The PrDevCtl Proc's CParam for page begin
  31. iPrDocClose       EQU         5                         ; The PrDevCtl Proc's CParam for doc end
  32. iPrLFStd          EQU         -1                        ; The PrDevCtl Proc's CParam for std paper advance
  33. iMscCtl           EQU         9                         ; Msc Text state / Drvr State ctl number
  34. iPvtCtl           EQU         10                        ; Private Ctls start here
  35.  
  36. ; State Constants
  37.  
  38. bPrDevOpen        EQU         1                         ; The DevOpen State Indicator
  39. bPrDocOpen        EQU         2                         ; The DocOpen State Indicator
  40. bPrPageOpen       EQU         3                         ; The PageOpen State Indicator
  41. bPrPrinting       EQU         4                         ; The Printing State Indicator
  42. bPrPageClose      EQU         5                         ; The PageClose State Indicator
  43. bPrDocClose       EQU         6                         ; The DocClose State Indicator
  44. bPrDevClose       EQU         0                         ; The DevClose State Indicator
  45.  
  46. ; These are misc Alert & Dialog constants
  47.  
  48. iOK               EQU         1                         ; OK Button
  49. iCancel           EQU         2                         ; Cancel Button
  50. iPrStlDlg         EQU         $E000                     ; {-8192} Style Dialog
  51. iPrJobDlg         EQU         $E001                     ; {-8191} Job Dialog
  52. iPrCfgDlg         EQU         $E002                     ; {-8190} Configuration Dialog
  53. iPgFeedAx         EQU         $E00A                     ; {-8182} Page Feed Dialog
  54. iPicSizAx         EQU         $E00B                     ; {-8181} Pic Size Alert
  55. iIOAbrtAx         EQU         $E00C                     ; {-8180} IO Timeout Alert
  56. iPrPgFst          EQU         1
  57. iPrPgMax          EQU         9999
  58. iPrSavPFil        EQU         $FFFF                     ; Abort but save print file
  59.  
  60. ; Printing data structures
  61.  
  62. ; Print Info data structure
  63. ; The parameters needed for page composition.
  64.  
  65.  
  66. ;iDev already defined in PrEqu.a
  67. ;iDev EQU 0 ; Font mgr/QuickDraw device code [word]
  68.  
  69. iVRes             EQU         2                         ; V Resolution of device, in device coord.[word]
  70. iHRes             EQU         4                         ; H resolution [word]
  71. iPrInfoSize       EQU         14                        ; The PrInfo size.[14]
  72.  
  73.  
  74. ; Printer Style data structure
  75. ; The printer configuration and usage information.
  76.  
  77. ;wDev EQU 0 ; The drvr #, Hi byte=RefNum, Lo byte=variant [word]
  78. bPort             EQU         6                         ; The IO port number [byte]
  79. iPrStlSize        EQU         8                         ; The PrStl size.[8]
  80.  
  81.  
  82. ; Print eXtra Info data structure
  83. ; The print time eXtra information.
  84.  
  85. iRowBytes         EQU         0                         ; The Band's rowBytes. [word]
  86. iBandV            EQU         2                         ; V Size of band, in device coordinates [word]
  87. iBandH            EQU         4                         ; H size of band [word]
  88. iBands            EQU         8                         ; Number of bands per page.
  89. bPatScale         EQU         10                        ; Pattern scaling [byte]
  90. bULThick          EQU         11                        ; 3 Underscoring parameters [byte]
  91. bULOffset         EQU         12                        ; [byte]
  92. bULShadow         EQU         13                        ; [byte]
  93. scan              EQU         14                        ; Band scan direction [byte]
  94. bXInfoX           EQU         15                        ; An eXtra byte. [byte]
  95. iPrXInfoSize      EQU         16                        ; The PrXInfo size.[16 bytes]
  96.  
  97.  
  98. ; Print Job data structure
  99. ; Print "form" for a single print request.
  100.  
  101. ;iFstPage EQU 0 ; Page Range [word]
  102. ;iLstPage EQU 2 ; [word]
  103. ;iCopies EQU 4 ; # copies [word]
  104. ;bJDocLoop EQU 6 ; Draft quality print flag [byte]
  105. ;fFromApp EQU 7 ; Printing from an App (not PrApp) flag [byte]
  106. ;pIdleProc EQU 8 ; Idle Proc [pointer]
  107. ;pFileName EQU 12 ; Spool File Name: NIL for default [pointer]
  108. ;iFileVol EQU 16 ; Spool File vol [word]
  109. ;bFileVers EQU 18 ; Spool File version [byte]
  110. bJobX             EQU         19                        ; An eXtra byte [byte]
  111. ;iPrJobSize EQU 20 ; The PrJob size.[20]
  112.  
  113.  
  114. ; Print Port structure
  115. ; A graf port, its procs, plus some extra.
  116.  
  117. ;gPort EQU 0 ; The Printer's graf port
  118. gProcs            EQU         108                       ; ..and its procs [13 pointers]
  119. lGParam1          EQU         160                       ; Some params: Our relocatable stuff etc [long]
  120. lGParam2          EQU         164                       ; [long]
  121. lGParam3          EQU         168                       ; [long]
  122. lGParam4          EQU         172                       ; [long]
  123. fOurPtr           EQU         176                       ; PrPort allocation done by us? [byte]
  124. fOurBits          EQU         177                       ; BitMap allocation done by us? [byte]
  125. ;iPrPortSize EQU 178 ; The PrPort size.[178]
  126.  
  127.  
  128. ; Print Status data structure
  129.  
  130. ;iTotPages EQU 0 ; Total pages in Print File [word]
  131. ;iCurPage EQU 2 ; Current page number [word]
  132. ;iTotCopies EQU 4 ; Total copies requested [word]
  133. ;iCurCopy EQU 6 ; Current copy number [word]
  134. ;iTotBands EQU 8 ; Total bands per page [word]
  135. ;iCurBand EQU 10 ; Current band number [word]
  136. ;fPgDirty EQU 12 ; current page has been written to? [byte]
  137. ;fImaging EQU 13 ; in band's DrawPic call? [byte]
  138. ;hPrint EQU 14 ; active Printer record [handle]
  139. ;pPrPort EQU 18 ; active PrPort [pointer]
  140. hPic              EQU         22                        ; active Picture [handle]
  141. ;iPrStatSize EQU 26 ; The PrStatus size[26 bytes]
  142.  
  143.  
  144. ; Print dialog
  145.  
  146. dlg               EQU         0                         ; DialogWindow
  147. pFltrProc         EQU         170                       ; filter Proc [pointer]
  148. pItemProc         EQU         174                       ; item evaluating proc [pointer]
  149. hPrintUsr         EQU         178                       ; user's print record [handle]
  150. fDoIt             EQU         182                       ; Boolean
  151. fDone             EQU         183                       ; Boolean
  152. lPrDlg1           EQU         184                       ; users to hang global data [long]
  153. lPrDlg2           EQU         188                       ; [long]
  154. lPrDlg3           EQU         192                       ; [long]
  155. lPrDlg4           EQU         196                       ; [long]
  156. iPrDlgSz          EQU         200
  157.  
  158.  
  159.  
  160. ; Less common print code stuff
  161.  
  162. ; These are the definitions for the Print code
  163.  
  164. fPrDbgOK          EQU         1                         ; Debug enable
  165. iPrSystemError    EQU         29                        ; Printcode System Error
  166.  
  167. ; The Private Print Globals; 16 bytes located at [SysEqu] PrintVars
  168.  
  169. PrintVars         EQU         $944                      ; print code variables [16 bytes]
  170. PrintErr          EQU         $944                      ; Current Printer Error
  171. ;ChooserBits EQU $946 ; bit 7 = 0 don't run; bit 6 = 0 gray out AppleTalk
  172. iPrErr            EQU         0                         ; Offset to current print error. Set to iPrAbort to abort printing.
  173. bDocLoop          EQU         2                         ; The Doc style: Draft, Spool, .., and ..
  174. ; Currently use low 2 bits; the upper 6 are for flags.
  175. bUser1            EQU         3
  176. lUser1            EQU         4
  177. lUser2            EQU         8
  178. lUser3            EQU         12
  179. iPrResFileRefNum  EQU         14                        ; The current print driver's resource file refnum 
  180. iPrVarSize        EQU         16                        ; The PrVar's size.[16]
  181. iPrError          EQU         PrintVars+iPrErr          ; abs loc of PrintError
  182. bPrFlags          EQU         PrintVars+bDocLoop        ; abs loc of pr flags
  183. bPrType           EQU         PrintVars+bUser1          ; abs loc of pr type field = -bDev [default = imagewriter = FF]
  184. fNewRunBit        EQU         2                         ; Bit 2 (3rd bit) in bDocLoop: new JobRun indicator
  185. fHiResOK          EQU         3                         ; Bit 3 (4th bit) is hi res indicator for paint
  186. fWeOpenedRF       EQU         4                         ; Bit 4 (5th bit) is set if driver opend the prres file.
  187. iPrRefNum         EQU         PrintVars+iPrResFileRefNum
  188.                                                         ; abs loc of the current print driver's resource file refnum
  189.  
  190. ; Printer Type Constants (each new printer has its own index value)
  191.  
  192. bDevCItoh         EQU         1                         ; Imagewriter
  193. bDevDaisy         EQU         2                         ; Daisy wheel printer (scrapped)
  194. bDevLaser         EQU         3                         ; LaserWriter
  195.  
  196. ; Miscellaneous constants.
  197.  
  198. scanTB            EQU         0                         ; scan top-bottom
  199. scanBT            EQU         1                         ; scan bottom-top
  200. scanLR            EQU         2                         ; scan left-right
  201. scanRL            EQU         3                         ; scan right-left
  202.  
  203. ;-------------------------------------------------------------------------------
  204. ; These are the constants for using resources to swap in the non-driver
  205. ; print code. Three numbers are needed:
  206. ; ResType
  207. ; ResID
  208. ; Offset into the seg's jump table
  209. ;
  210. ; The offset is really a formatted Long that contains three fields:
  211. ; Frame Size; Unlock flag; Offset into the seg's jump table
  212. ; We could use the topmost byte for further stuff: a stack adjust for
  213. ; storing the registers needed by the link code so that it would be re-entrant.
  214. ;-------------------------------------------------------------------------------
  215.  
  216. lPDefType         EQU         $50444546                 ; Pr Resource TYPE: "PDEF"
  217. iPrDraftID        EQU         0                         ; Pr Draft Resource ID
  218. iPrSpoolID        EQU         1                         ; Pr Spool Resource ID
  219. iPrUser1ID        EQU         2                         ; Pr Spare1 Resource ID
  220. iPrUser2ID        EQU         3                         ; Pr Spare2 Resource ID
  221. lOpenDoc          EQU         $000C0000                 ; PrOpenDoc JumpTable offset
  222. lCloseDoc         EQU         $00048004                 ; PrCloseDoc JumpTable offset
  223. lOpenPage         EQU         $00080008                 ; PrOpenPage JumpTable offset
  224. lClosePage        EQU         $0004000C                 ; PrClosePage JumpTable offset
  225. iPrDlgsID         EQU         4                         ; Pr Dialogs Resource ID
  226. lDefault          EQU         $00048000                 ; PrintDefault JumpTable offset
  227. lStlDialog        EQU         $00048004                 ; PrStlDialog JumpTable offset
  228. lJobDialog        EQU         $00048008                 ; PrJobDialog JumpTable offset
  229. lStlInit          EQU         $0004000C                 ; PrStlInit JumpTable offset
  230. lJobInit          EQU         $00040010                 ; PrJobInit JumpTable offset
  231. lDlgMain          EQU         $00088014                 ; PrDlgMain JumpTable offset
  232. lPrValidate       EQU         $00048018                 ; PrintValidate JumpTable offset
  233. lPrJobMerge       EQU         $0008801C                 ; PrintValidate JumpTable offset
  234. iPrPicID          EQU         5                         ; Pic Printing Resource ID
  235. lPrPicFile        EQU         $00148000                 ; PrPicFile JumpTable offset
  236. iCfgDlgID         EQU         6                         ; Configuration proc Resource ID
  237. lCfgDialog        EQU         $00008000                 ; PrCfgDialog JumpTable offset
  238. iPrHackID         EQU         7                         ; The "Oops, I Forgot" Resource ID
  239. lPrHack           EQU         $000C8000                 ; PrHack JumpTable offset
  240.  
  241.     ENDIF    ; ...already included